

function notification_action(achor,nid){
	//TODO
	toastr.info('操作成功!');
	$.get(base_url+'index.php/notification/action/'+nid);
	dismiss_from_anchor(achor);
}

function notification_cancel(achor,nid){
	//TODO
	toastr.info('操作成功!');
	$.get(base_url+'index.php/notification/cancel/'+nid);
	dismiss_from_anchor(achor);
}

function dismiss_from_anchor(anchor){
	$(anchor).parent('div').remove();
	if($('#notification_area').children('div').size()==0){
		$('#notification_area').remove();
	}
}
